<?php

class Application_Form_Costumer extends Sgit_Form
{

    public function init_form()
    {

         $codigo=new Zend_Form_Element_Text('codigo');
         $codigo->setLabel('Código Cliente')
                ->addFilter('StringTrim')
                ->addValidator('StringLength', false,array(0, 50));
         $this->addElement($codigo);
         
         $nombre=new Zend_Form_Element_Text('nombre');
         $nombre->setLabel('Nombre')->setRequired()
                ->addFilter('StringTrim')
                ->addValidator('StringLength', false,array(0, 100));
         $this->addElement($nombre);
         
         $razon_social=new Zend_Form_Element_Text('razon_social');
         $razon_social->setLabel('Razon Social')->setRequired()
                ->addFilter('StringTrim')
                ->addValidator('StringLength', false,array(0, 100));
         $this->addElement($razon_social);
         
         $cif=new Zend_Form_Element_Text('cif');
         $cif->setLabel('CIF')
                ->addFilter('StringTrim')
                ->addValidator('StringLength', false,array(0, 50));
         $this->addElement($cif);
         
         $domicilio=new Zend_Form_Element_Text('domicilio');
         $domicilio->setLabel('Domicilio')
                ->addFilter('StringTrim')
                ->addValidator('StringLength', false,array(0, 200));
         $this->addElement($domicilio);
    
    
         $this->setElementDecorators(array(
		    'ViewHelper',
		    'Errors',
		    array(array('data' => 'HtmlTag'),	array('tag' => 'td', 'class' => 'element')   ),
		    array('Label', array('tag' => 'td')),
		    array(array('row' => 'HtmlTag'), array('tag' => 'tr')),
	     ));
       
       
   

        
    }
}
